package com.lucian.ge.service.shop.impl;

//import com.google.common.collect.Lists;
//import com.google.common.collect.Sets;
//import com.lucian.ge.comman.ServerResponse;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import com.lucian.ge.comman.ServerResponse;
import com.lucian.ge.dao.shop.CategoryMapper;
import com.lucian.ge.pojo.shop.Category;
//import com.lucian.ge.service.shop.CategoryService;
//import org.apache.commons.lang3.StringUtils;
//import org.apache.commons.collections.CollectionUtils;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

import com.lucian.ge.service.shop.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;
import java.util.Map;

/**
 * Created by Lucicol on 2019/6/19.
 */
@Service("CategoryService")
public class CategoryServiceImpl implements CategoryService {

    @Autowired(required=false)
    private CategoryMapper categoryMapper;

    public Map<String, String> findChildCategory(Integer categoryId){
        Map<String, String> category = categoryMapper.selectByPrimaryKey(categoryId);
        System.out.println(JSONObject.parseObject(JSON.toJSONString(category)) + "lmpl");

        return category;
    }

}
